package com.manager.service;

import com.manager.bean.PageInfo;
import com.manager.bean.Student;
import com.manager.bean.StudentDormitoryKey;

import java.util.List;

/**
 * (Studentdormitory)表服务接口
 *
 * @author makejava
 * @since 2021-03-02 11:00:25
 */
public interface StudentDormitoryService {
    PageInfo<StudentDormitoryKey> findPageInfo(Integer studentId,Integer dormitoryId,
                                   Integer pageIndex, Integer pageSize);
    /**
     * 通过ID查询单条数据
     *
     * @param studentId 主键
     * @return 实例对象
     */
    StudentDormitoryKey queryById(Integer studentId);


    List<StudentDormitoryKey> getAll();

    /**
     * 新增数据
     *
     * @param studentdormitory 实例对象
     * @return 实例对象
     */
    StudentDormitoryKey insert(StudentDormitoryKey studentdormitory);

    /**
     * 修改数据
     *
     * @param studentdormitory 实例对象
     * @return 实例对象
     */
    StudentDormitoryKey update(StudentDormitoryKey studentdormitory);

    /**
     * 通过主键删除数据
     *
     * @param studentId 主键
     * @return 是否成功
     */
    boolean deleteById(Integer studentId);

}
